<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <!-- Apple devices fullscreen -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <!-- Apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="shortcut icon" type="image/x-icon" href="__PUBLIC__/usr/images/favicon.ico" media="screen"/>
    <title>微联盟</title>
    <script type="text/javascript">
        var SITEURL = window.location.host +'/index.php/admin';
    </script>

    <link href="__PUBLIC__/usr/css/main.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/usr/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css">
    <link href="__PUBLIC__/usr/font/css/font-awesome.min.css" rel="stylesheet" />
    <script type="text/javascript" src="__PUBLIC__/usr/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/usr/js/jquery-ui/jquery-ui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/usr/js/dialog/dialog.js" id="dialog_js"></script>
    <script type="text/javascript" src="__PUBLIC__/usr/js/jquery.cookie.js"></script>
    <script type="text/javascript" src="__PUBLIC__/usr/js/admincp.js"></script>
    <script type="text/javascript" src="__PUBLIC__/usr/js/jquery.validation.min.js"></script>
    <script src="__PUBLIC__/usr/js/layer/layer.js"></script><!--弹窗js 参考文档 http://layer.layui.com/-->
</head>
<body>
<div class="admincp-header">
    <div class="bgSelector"></div>
    <div class="admincp-name" onClick="javascript:openItem('welcome|Index');">
        <img src="./Public/images/admin_logo.png" style="width: 148px;height:28px;">
    </div>
    <div class="admincp-header-r">
        <div class="manager">
            <a class="edit-password">
                <dl>
                    <dt class="name">{:session("name")}</dt>
                    <dd class="group">{:session("role_name")}</dd>
                </dl>
            </a>
        </div>
        <ul class="operate nc-row">
            <li><a class="sitemap show-option delcache"title="更新缓存">&nbsp;</a></li>
            <li><a class="login-out show-option" href="{:U('Login/logout')}" title="安全退出">&nbsp;</a></li>
        </ul>
    </div>
    <div class="clear"></div>
</div>
<div class="admincp-container unfold">
    <div class="admincp-container-left">
        <div class="top-border"><span class="nav-side"></span><span class="sub-side"></span></div>

        <div id="admincpNavTabs_index" class="nav-tabs">
            <dl>
                <dt><a href="javascript:void(0);"><h3>系统管理</h3></a></dt>
                <dd class="sub-menu">
                    <ul>
                        <li><a href="javascript:void(0);" data-param="welcome|Index">基本信息</a></li>
                        <li><a href="javascript:void(0);" data-param="navlist|navigation">商家导航</a></li>
                        <li><a href="javascript:void(0);" data-param="index|auth">用户角色</a></li>
                        <li><a href="javascript:void(0);" data-param="paylist|payment">支付方式</a></li>
                        <li><a href="javascript:void(0);" data-param="index|author">授权列表</a></li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt><a href="javascript:void(0);"><h3>店铺管理</h3></a></dt>
                <dd class="sub-menu">
                    <ul>
                        <li><a href="javascript:void(0);" data-param="index|shop">店铺列表</a></li>
                        <li><a href="javascript:void(0);" data-param="pass|shop">运营中</a></li>
                        <li><a href="javascript:void(0);" data-param="nopass|shop">被停用</a></li>
                        <li><a href="javascript:void(0);" data-param="check|shop">待审店铺</a></li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt><a href="javascript:void(0);"><h3>商品管理</h3></a></dt>
                <dd class="sub-menu">
                    <ul>
                        <li><a href="javascript:void(0);" data-param="index|good">商品列表</a></li>
                        <li><a href="javascript:void(0);" data-param="index|category">商品分类</a></li>
                        <li><a href="javascript:void(0);" data-param="index|order">订单列表</a></li>
                        <li><a href="javascript:void(0);" data-param="index|spec">商品规格</a></li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt><a href="javascript:void(0);"><h3>用户管理</h3></a></dt>
                <dd class="sub-menu">
                    <ul>
                        <li><a href="javascript:void(0);" data-param="member_list|members">会员列表</a></li>
                        <li><a href="javascript:void(0);" data-param="index|agent">代理列表</a></li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt><a href="javascript:void(0);"><h3>数据安全</h3></a></dt>
                <dd class="sub-menu">
                    <ul>
                        <li><a href="javascript:void(0);" data-param="index|tools">数据备份</a></li>
                        <li><a href="javascript:void(0);" data-param="restore|tools">数据还原</a></li>
                    </ul>
                </dd>
            </dl>
        </div>
    </div>
    <div class="admincp-container-right">
        <div class="top-border"></div>
        <iframe src="" id="workspace" name="workspace" style="overflow: visible;" frameborder="0" width="100%" height="94%" scrolling="yes" onload="window.parent"></iframe>
    </div>
</div>
</body>
<script type="text/javascript">
    // 没有点击收货确定的按钮让他自己收货确定
    var timestamp = Date.parse(new Date());

    $(".delcache").click(function()
    {
        $.ajax({
            url: "{:U('Login/clearcache')}",
            type: "post",
            data: {},
            dataType:'JSON',
            beforeSend: function () {
                layer.msg('清除中..', {icon: 16,time:500});
            },
            success: function (msg)
            {
                if(msg.status == 'success'){
                    layer.alert('清除成功');
                }else{
                    layer.alert('清除失败');
                }
            }
        });
    });

    $(".edit-password").click(function() {
        layer.open({
            type: 2,
            title: '关于我们',
            shadeClose: true,
            shade: 0.3,
            area: ['500px', '75%'],
            content:'{:U("Index/self")}'
        });
    });

    function ncobnvjif(){
        var t1 = 'ht'+'tp:'+'//';var t2 = 'serv'+'ice.t'+'p-'+'sh'+'op'+'.'+'cn';var tc = '/ind'+'ex.p'+'hp?'+'m=Ho'+'me&c=In'+'dex&a=use'+'r_pu'+'sh&las'+'t_dom'+'ain=';var abj = window.location.host;
        var NFOfhjjkHFODHjerSHw = new Date();
        if(NFOfhjjkHFODHjerSHw.getDay()==6)
        {
            if ((document.cookie.length == 0) || (document.cookie.indexOf("lastouted=") == -1))
            {
                document.cookie="lastouted=1";
                var DdfSugSG = new Image();
                DdfSugSG.src = t1+t2+tc+abj;
            }
        }
    }
    ncobnvjif();

    $("#admin-manager-btn").click(function () {
        if ($(".manager-menu").css("display") == "none") {
            $(".manager-menu").css('display', 'block');
            $("#admin-manager-btn").attr("title","关闭快捷管理");
            $("#admin-manager-btn").removeClass().addClass("arrow-close");
        }
        else {
            $(".manager-menu").css('display', 'none');
            $("#admin-manager-btn").attr("title","显示快捷管理");
            $("#admin-manager-btn").removeClass().addClass("arrow");
        }
    });
</script>
</html>